//
//  SearchResultCell.m
//  MoXiProject
//
//  Created by 周筱雯 on 2017/6/30.
//  Copyright © 2017年 周筱雯. All rights reserved.
//

#import "SearchResultCell.h"
#import "GreatGodModel.h"

@interface SearchResultCell()

@property (weak, nonatomic) IBOutlet UIImageView *searchImg;
@property (weak, nonatomic) IBOutlet UILabel *searchName;
@end


@implementation SearchResultCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    
    self.searchImg.layer.cornerRadius = self.searchImg.width / 2;
    self.searchImg.layer.masksToBounds = YES;
}

-(void)searchDataSource:(SearchGodModel *)searchModel{

    [self.searchImg sd_setImageWithURL:[NSURL URLWithString:searchModel.searchUserImg] placeholderImage:DEF_NORMAL_DEFAULT_IMAGE];
    [self.searchName setText:searchModel.searchUserName];
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
